"""
字符串的格式化
"""
# 通过占位的形式完成拼接
name = "黑马程序员"
flag = "正确的选择"
message = "学IT来: %s %s" % (name,flag)
print(message)

class_num = 57
avg_salary = 10000
message = "Python大数据学科， 北京%s期，平均工资：%s元" % (class_num, avg_salary)
print(message)

name = "传智播客"
setup_year = 2004
stock_price = 19.99
message = "%s 成立于 %d ,股价 %f" % (name,setup_year,stock_price)
print(message)





